import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'index',
    component: () => import('../views/login/index.vue')
  },
  {
    path: '/home',
    name: '首页',
    component: () => import('../views/home/index.vue')
  },
  {
    path: '/log',
    name: '日志',
    component: () => import('../views/log/index.vue')
  },
  {
    path: '/tz',
    name: '通知',
    component: () => import('../views/tz/index.vue')
  }
  ,
  {
    path: '/my',
    name: '我的',
    component: () => import('../views/my/index.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
